package com.hsd.znsh.repository;

import com.hsd.znsh.entity.Gateway;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;


/*
 * @auther: wangjiacai
 *
 * @create: 2018-04-23 11:54:50
 */
public interface GatewayRepository extends JpaRepository<Gateway,Integer> {

    Gateway findByGatewayId(String gatewayId);

    void deleteByGatewayId(String gatewayId);

    List<Gateway> findByOnlineStatus(Integer online);

    List<Gateway> findByHostId(Integer hostId);
}
